From: Alexander Couzens Date: Thu, 5 Jul 2018 01:13:03 +0000 (+0200) Subject: CMakeLists.txt: add -Wimplicit-fallthrough to the compiler flags X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=908a9f4f1027fdc813dc3a0c0f6231194bc5be3f;p=project%2Fnetifd.git CMakeLists.txt: add -Wimplicit-fallthrough to the compiler flags Signed-off-by: Alexander Couzens Acked-by: Hans Dedecker --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 696412b..50f62bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 2.6) PROJECT(netifd C) -ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-unknown-warning-option -Wno-format-truncation) +ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-unknown-warning-option -Wno-format-truncation -Wimplicit-fallthrough) SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")